package com.hzdp.coc;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class SingleThreadPoolDemo {

	public static void main(String[] args) {
		ExecutorService pool = Executors.newSingleThreadExecutor();
		for (int i = 0; i < 10; i++) {
			pool.execute(new MyThread(i));
		}
		pool.shutdown();
	}
}
